let a = true; //赣银惠贷  赣银云贷
let Code = "LN0301008001"; //赣银惠贷LN0301008001   赣银云贷GY8888888888
let productCodeInfoList = [
  {
    productCode: "LN0301008001--惠贷",
  },
];

function getCode(showSort, productCode, productCode2) {
  return showSort
    ? productCode == "GY8888888888"
      ? productCode
      : productCode2
    : productCode;
}
let productCode2 = Code == "LN0301008001" ? productCodeInfoList[0].productCode : null
console.log(getCode(a, Code, productCode2));
